package com.common.config;

import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;

/**
 * @classDescription:
 * @author:xiayingjie
 * @createTime:16/7/29
 */

public class DefaultEnv implements Condition{


    @Override
    public boolean matches(ConditionContext conditionContext, AnnotatedTypeMetadata annotatedTypeMetadata) {
        System.setProperty("spring.profiles.default","dev");
        return true;
    }
}
